import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

// page
import main from '../page/main/index'
import buy from '../page/buy/index'
import info from '../page/info/index'
import diy from '../page/diy/index'
import ver from '../page/version/index'

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      // component: require('../components/Hello')
      component: main
    },
    {
      path: '/buy',
      component: buy
    },
    {
      path: '/info',
      component: info
    },
    {
      path: '/diy',
      component: diy
    },
    {
      path: '/version',
      component: ver
    }
  ]
})
